home *** CD-ROM | disk | FTP | other *** search
/ Leonardo the Inventor / Leonardo The Inventor (93026)(Broderbund)(Riverdeep)(2004).iso / LEOWINMV / QUIZGAM.DIR / 00182_Script_MISCELLANEOUS < prev    next >
Text File  |  1996-03-19  |  639b  |  22 lines

  1. -- -----------------------------------------------------------------------------
  2. -- handler swapSoundFile swaps soundfile "soundHolder" with aFile so it's in the cast 
  3. -- and can be played using puppetSound
  4.  
  5. on swapSoundFile aFile
  6.   global soundHolder
  7.   
  8.   set the fileName of cast soundHolder = aFile
  9.   
  10. end
  11.  
  12.  
  13. -- -----------------------------------------------------------
  14. -- Handler waitVoiceQGame plays the sound in channel 1 allowing it
  15. -- to be interruptable by a mouseclick.
  16.  
  17. on waitVoiceQGame aChannel
  18.   repeat while (not (the mouseDown)) and (soundBusy(aChannel))
  19.     --nothing
  20.   end repeat
  21.   puppetSound 0
  22. end